package net.borlis.configuration.common;

/**
 * The critical error during loading the configuration file.
 *
 * @author alex@borlis.net
 */
public class ConfigurationInitError extends Error {

    private static final String MESSAGE = "The configuration cannot be loaded.";

    private ConfigurationInitError() {
        super();
    }

    private ConfigurationInitError(String message) {
        super(message);
    }

    private ConfigurationInitError(String message, Throwable cause) {
        super(message, cause);
    }

    /**
     * Throw the init error with the real cause.
     * @param cause the real exception.
     */
    public ConfigurationInitError(Throwable cause) {
        super(MESSAGE, cause);
    }

    private ConfigurationInitError(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

}
